﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Index_top</title>
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <link href="../../Content/back/css/skin.css" rel="stylesheet" type="text/css" />

    <script  type="text/javascript">
        function logout() {
            if (confirm("您确定要退出系统吗？")) {
                ExitSystem();
            }
            return false;
        }
        function ExitSystem() {
            $.ajax({
                type: "post",
                url: "/Login/ExitSystem", //注意URL是否为正确的路径
                cache: false,
                data: "username=" + $("#username").val(),
                success: function (result) {
                    top.location ="/Exit/Exit";
                }
            });
        }
        function showsubmenu(sid) {
            var whichEl = eval("submenu" + sid);
            var menuTitle = eval("menuTitle" + sid);
            if (whichEl.style.display == "none") {
                eval("submenu" + sid + ".style.display=\"\";");
            } else {
                eval("submenu" + sid + ".style.display=\"none\";");
            }
        }
    function showsubmenu(sid) {
	    var whichEl = eval("submenu" + sid);
	    var menuTitle = eval("menuTitle" + sid);
	    if (whichEl.style.display == "none"){
		    eval("submenu" + sid + ".style.display=\"\";");
	    }else{
		    eval("submenu" + sid + ".style.display=\"none\";");
	    }
}
$(function () { javascript: window.history.forward(1); });
</script>
<base target="main">
</head>
<body leftmargin="0" topmargin="0">
<%string id = HttpContext.Current.Session["userId"].ToString(); %>
<table width="100%" height="64" border="0" cellpadding="0" cellspacing="0" class="admin_topbg">
  <tr>
    <td width="41%" height="64"><img src="<%=kysec.CR.MyUrl.WebData.WEBURL %>/Content/back/images/logo.gif" width="262" height="64"></td>
    <td width="59%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="74%" height="38" class="admin_txt"> 管理员：<input type="hidden" id="username" value="<%=id %>"/><b style="color:Green;"><%string username = kysec.Bll.User.common.getUserNameById(id);%><%=username %></b>&nbsp;&nbsp; 您好,感谢登陆使用！
        <a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/EditPwdInfo?id=password" style="margin-left:10px;color:Red;">修改密码</a><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/User/Details?id=<%:HttpContext.Current.Session["userId"].ToString() %>" style="margin-left:10px;color:Red;" >个人信息</a></td>
        <td width="22%"><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/Login/Index" target="_parent"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL +"/Content/back/images/home.gif") %>" title="后台主页" border="0px"/></a></span></td><td width="25%">
        <span><a href="javascript:;" target="_self" onClick="logout();"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL +"/Content/back/images/out.gif") %>" title="安全退出" height="20" border="0"></a></span></td>
        <td width="4%">&nbsp;</td>
      </tr>
      <tr>
        <td height="19" colspan="3">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
